year = 0
tuition = 10000

while tuition<20000:
    year += 1
    tuition = tuition*1.07

print(year,tuition)